package com.wench.design.pattern.adapter.object_adapter;

/**
 * @author wench
 */
public class ObjectAdapterClient {

    public static void main(String[] args) {
        Computer computer = new Computer();
        String msg = computer.readSd(new SdCardImpl());
        System.out.println(msg);
        System.out.println("---------------------");

        SdAdapterTf sdAdapterTf = new SdAdapterTf(new TfCardImpl());
        System.out.println(computer.readSd(sdAdapterTf));
    }
}
